package com.polymorphic多态.polyArray多态数组;

public class Student extends Person{
    private double score;
    public Student(String name, int age, double score) {
        super(name, age);
        this.score = score;
    }

    public double getScore() {
        return score;
    }

    public String say() {
        return "学生 " + super.say() + "  score = " + score;
    }

    public void study() {
        System.out.println("学生 " + getName() + " 在学习");
    }
}
